

const userValidator = {
    username: {
        presence: {
            message: "用户名不能为空！"
        },
        length: {
            minimum: 4,
            message: "用户名不能少于4个字符"
        }
    },
    password: {
        presence: {
            message: "密码不能为空!"
        },
        length: {
            minimum: 6,
            maximum: 18,
            message: "用户名不能少于6个字符或者多于18个字符"
        }
    }
};

export {
    userValidator
};